package com.yuyou.hxyy.service.api.service.impl;

import com.yuyou.hxyy.service.api.entity.UserWordRepo;
import com.yuyou.hxyy.service.api.mapper.UserWordRepoMapper;
import com.yuyou.hxyy.service.api.service.IUserWordRepoService;
import com.yuyou.hxyy.service.api.vo.resp.UserWordRepoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserWordRepoServiceImpl implements IUserWordRepoService {

    @Autowired
    private UserWordRepoMapper mapper;

    @Override
    public int deleteByPrimaryKey(Long userWordRepoId) {
        return mapper.deleteByPrimaryKey(userWordRepoId);
    }

    @Override
    public int insert(UserWordRepo record) {
        return mapper.insert(record);
    }

    @Override
    public UserWordRepo selectByPrimaryKey(Long userWordRepoId) {
        return mapper.selectByPrimaryKey(userWordRepoId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserWordRepo record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<UserWordRepoVo> findLearningList(Long userId, Integer status) {
        return mapper.findLearningList(userId , status);
    }
}
